package f.h.dragon.patterns.gateway;

/**
 * MessageSender: message sender
 *
 * @author Wenlong Meng(wenlong.meng@gmail.com)
 * @version 1.0 at 2012/04/23
 * @since 1.0
 */
public interface MessageSender {
	
	//Global Constant
	/**
	 * flag: parameter is null
	 */
	public static final int NULL_PARAMETER = 1;
	/**
	 * flag: unknown message type
	 */
	public static final int UNKNOWN_MESSAGE_TYPE = 2;
	/**
	 * flag: success
	 */
	public static final int SUCCESS = 0;

	//Logic
	/**
	 * send msg with args
	 * 
	 * @param msg
	 * @param args
	 * @return NULL_PARAMETER - if args is null
	 * 		   SUCCESS - if success
	 */
	int send(String msg, Object[] args);

}
